package com.github.catvod.spider;

import android.text.TextUtils;
import com.github.catvod.crawler.Spider;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.O;
import com.github.catvod.spider.merge.aF;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.jP;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.TreeMap;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class APPTT extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f11short = {2097, 2101, 2083, 763, 767, 745, 661, 761, 750, 744, 661, 756, 725, 746, 731, 734, 734, 723, 724, 733, 683, 687, 697, 1630, 1626, 1612, 1584, 1628, 1611, 1613, 1584, 1617, 1648, 1615, 1662, 1659, 1659, 1654, 1649, 1656, 1046, 1072, 1062, 1073, 1134, 1026, 1060, 1062, 1069, 1079, 2555, 2559, 2556, 2528, 2528, 2532, 2491, 2471, 2490, 2469, 2470, 2490, 2469, 2469, 1765, 1788, 1783, 1740, 1761, 1782, 1790, 1778, 1761, 1784, 1760, 1771, 1778, 1785, 1730, 1773, 1780, 1790, 2914, 2939, 2928, 2891, 2938, 2933, 2937, 2929, 2136, 2113, 2122, 2161, 2119, 2122, 319, 294, 301, 278, 296, 315, 300, 296, 2791, 2806, 2800, 2802, 443, 416, 443, 430, 419, 3027, 3030, 3020, 3019, 26991, 21618, 471, 472, 469, 455, 455, 944, 949, 945, 949, 936, 2086, 2091, 2082, 2103, 992, 1020, 1016, 1003, 2182, 2197, 2178, 2182, 1706, 1703, 1704, 1697, 3119, 3134, 3111, 3168, 3134, 3110, 3134, 3169, 3128, 3199, 3168, 3128, 3105, 3114, 3185, 3130, 3127, 3134, 3115, 3187, 2684, 2617, 2614, 2619, 2601, 2601, 2663, 1337, 1395, 1406, 1393, 1400, 1314, 721, 662, 645, 658, 662, 714, 947, 1004, 1008, 1012, 999, 936, 2496, 2454, 2439, 2433, 2435, 2523, 1487, 1419, 1424, 1492, 1435, 1415, 1421, 1708, 1766, 1763, 1767, 1763, 1790, 1719, 1720, 1726, 1708, 1790, 1765, 1761, 1775, 1764, 1719, 305, 319, 291, 2763, 2766, 2779, 2766, 3138, 3163, 3152, 3179, 3149, 3153, 3157, 3142, 27130, 27443, 590, 599, 604, 615, 596, 601, 598, 607, 26061, 29954, 21304, 22989, 396, 413, 411, 409, 415, 403, 393, 402, 392, 1312, 1340, 1329, 1321, 1333, 1314, 1295, 1337, 1342, 1334, 1343, 1703, 1703, 1703, 489, 496, 507, 448, 508, 496, 497, 491, 506, 497, 491, 812, 821, 830, 773, 830, 819, 808, 831, 825, 814, 821, 808, 2311, 2334, 2325, 2350, 2320, 2322, 2309, 2334, 2307, 1986, 2011, 2000, 2027, 1990, 2001, 2009, 2005, 1990, 2015, 1991, 3274, 3283, 3288, 3299, 3293, 3278, 3289, 3293, 507, 482, 489, 466, 500, 488, 492, 511, 3309, 3316, 3327, 3268, 3307, 3314, 3320, 587, 594, 601, 610, 595, 604, 592, 600, 1906, 1899, 1888, 1883, 1901, 1888, 2647, 2642, 2631, 2642, 2005, 1988, 2013, 1946, 1988, 2012, 1988, 1947, 1986, 1925, 1946, 1986, 2011, 2000, 1947, 2000, 2001, 1984, 2013, 2008, 2008, 2000, 2005, 1984, 2005, 1931, 1986, 2011, 2000, 2027, 2013, 2000, 1929, 2627, 2577, 2570, 2574, 2560, 2571, 2648, 1857, 1871, 1875, 432, 431, 418, 419, 425, 399, 424, 416, 425, 2630, 2650, 2624, 2631, 2646, 2640, 2456, 2461, 2439, 2432, 1050, 1025, 1030, 1054, 631, 614, 629, 628, 610, 615, 639, 631, 633, 636, 639, 2818, 1726, 716, 725, 734, 741, 714, 726, 731, 707, 741, 732, 712, 725, 727, 2194, 2187, 2176, 2235, 2196, 2184, 2181, 2205, 2235, 2193, 2198, 2184, 1508, 2606, 2535, 2448, 1704, 758, 2590, 312, 3322, 3213, 732, 2455, 2487, 2542, 2488, 2485, 2492, 2473, 2451, 2469, 2472, 2542, 2550, 2542, 2557, 2542, 2528, 2542, 2488, 2485, 2492, 2473, 2451, 2466, 2477, 2465, 2473, 2542, 2550, 2542, 31993, 22205, 2542, 2481, 2528, 2487, 2542, 2488, 2485, 2492, 2473, 2451, 2469, 2472, 2542, 2550, 2542, 2558, 2542, 2528, 2542, 2488, 2485, 2492, 2473, 2451, 2466, 2477, 2465, 2473, 2542, 2550, 2542, 31993, -32758, 23467, 2542, 2481, 2528, 2487, 2542, 2488, 2485, 2492, 2473, 2451, 2469, 2472, 2542, 2550, 2542, 2552, 2542, 2528, 2542, 2488, 2485, 2492, 2473, 2451, 2466, 2477, 2465, 2473, 2542, 2550, 2542, 30512, -29770, 2542, 2481, 2528, 2487, 2542, 2488, 2485, 2492, 2473, 2451, 2469, 2472, 2542, 2550, 2542, 2559, 2542, 2528, 2542, 2488, 2485, 2492, 2473, 2451, 2466, 2477, 2465, 2473, 2542, 2550, 2542, 23396, 26343, 2542, 2481, 2449, 969, 966, 971, 985, 985, 715, 708, 705, 729, 712, 735, 734, 1605, 1628, 1623, 1644, 1601, 1622, 1630, 1618, 1601, 1624, 1600, 2224, 2217, 2210, 2201, 2230, 2223, 2213, 1994, 2003, 2008, 2019, 2002, 2013, 2001, 2009, 781, 788, 799, 804, 786, 799, 2191, 2206, 2183, 2240, 2206, 2182, 2206, 2241, 2200, 2271, 2240, 2200, 2177, 2186, 2241, 2189, 2203, 2204, 2176, 2191, 2200, 2183, 2202, 2187, 2179, 2178, 2183, 2205, 2202, 2257, 2202, 2177, 2181, 2187, 2176, 2259, 1471, 1457, 1453, 621, 616, 637, 616, 434, 438, 424, 433, 420, 435, 397, 424, 434, 437, 1812, 1809, 1803, 1804, 1097, 1129, 1418, 1450, 828, 895, 801, 871, 810, 1788, 1773, 1790, 1791, 1769, 1675, 1676, 1682, 2282, 2217, 2228, 2288, 2028, 1982, 1957, 1953, 1967, 1956, 2039, 371, 294, 310, 360, 2162, 501, 1248, 1286, 2530, 2531, 2545, 2458, 2447, 1274, 1251, 1256, 1235, 1278, 1257, 1249, 1261, 1278, 1255, 1279, 1345, 1368, 1363, 1384, 1351, 1374, 1364, 2936, 2913, 2922, 2897, 2912, 2927, 2915, 2923, 1698, 1723, 1712, 1675, 1725, 1712, 2915, 2918, 2940, 2939, 2782, 2767, 2774, 2705, 2767, 2775, 2767, 2704, 2761, 2702, 2705, 2761, 2768, 2779, 2688, 2767, 2782, 2776, 2778, 2690, 2702, 2713, 2771, 2774, 2770, 2774, 2763, 2690, 2702, 2703, 2713, 2760, 2779, 2690, 1295, 1373, 1350, 1346, 1356, 1351, 1300, 3177, 3175, 3195, 2558, 2555, 2542, 2555};
    private String h = "";
    private String V0 = "";
    private String j = "";
    private String q = "";
    private String I = "";
    private String oC = "MIIEpQIBAAKCAQEA5iLxDPp5E1Lr6TRSEWXHJ909jw63wXRG5U0kEsP1Ys+AgziF/G2vYplf28ZVFh2EROTu3fj6WSKhcWuzJ/tUpoNe0APCUabkFde+2B1PBviSNvSLLMli5mflXYVaXVkAq7eftIAxO6EHnZ1GNQt2F4HLjqHPtEWUEP+x0VszBdiHhcOl3ev2sKZzJKM3c8Qn+/aXXWIh9NxJwFztizfEWAaSLGHGDlLxetmaW1RmTLVpgtJOYzLoQrxPP/ghMOMstuM2VYP0fIKlXgG8Cmrs9AnrwlhwSl0Mc5+M1DRpF2JVxlxtoQuc+K4qQMtmBeA++9vWj7v78371DobHYcceLQIDAQABAoIBAQCOJcb+XTer1+wff1GxrUv2M5Fya4TU2R1xRNSjQqavAbw/UQpxgM5z+IhdF4Q2xMSOSVnBgaggpmNRy1Q9vd/refl2Qtwj0xHO7BPVKUVG6QJnL2VHpJyR9FqYCWZngjIH3sOmmgfO7QfnMt3KpemrW2CAGTJSBygN1+HdjpdVY91gsi1Q60ecwE74PYZ1Cg63hnqun2aKvQbX4Y88ZSmp9lczFdmmDPqJE0rTHWOBwsuZ3bQElG19cYHChwDJgDLPrP+9RbHOVJxPz0zSjPlPVhUl1OAkViY2E+CXGEKpQmmPOMytu3qbmIpwWiTtr/yl1b7AAEI/4QSuSEwGr0wBAoGBAPjNEtRyZMUI8n5usG/b7U+q6+HF0ezJCjbFIhF7pPrzOA66tFl2u98EySUZPAzG74bPQADELQZfTc7KxqywB3g+ErFnJ0f/DLNs87rLYlQwWQaL61z8RdSdoc2dPWGUgsiULct68pBfEQ/qR9alAhAWYbjOHGeHNLpNkD/uUUQ5AoGBAOzLnYEPF1RphlkiVyoH2T/ruNYKWGvzIk3xDuZlDCvaYnCQWvp7A4ogK9rO5M3kPZrhc3R2SvqqxiI6czRzFzm8AMnf9ZJB7EPfx5nSmgbgvDMmx7M4s2HaE3WvOAe0OEYNVetdssyBNT+EoCmJNb6lAa0ZqUeFXQVu66MUx7GVAoGBALzs1ECYQObRnXneSYIXSYO2cXm2gmrAWk4usWj/L88Tg1zD75EDtTNraeYO3GeDZH1EwQAT93CgS/AcUHLvFCz9TaqCfvSPurBAqm8MY7U0JVXwR6ALPGdv71636NVBNXJj+sZJrQlt9wHT0Aswr3lR1ZDEihMfOy3BGilBqVoZAoGBAIXe+3WqTXs4iW68/mBRvZ3oqz++64xkEYHVBaJ1gDMOrNaMlhLEFxUw6Po0O6C3J6j3SqmN8wfSIl/ZgaYmZvwJ8LwwtInyYRtiWVr6eH/o8B1PEFmfdbKdcqD25YtddO8NvQRqnZoGdk8psM6qtsrISLFPL6eymwtmUSuKpPcdAoGACxQPMb2wMxhexC8efCmDx85HY5yDBG3plejXLJ4pCBRJcUcCdWQnASsJracm05D09FZZcZjOaE13lHoeNj1zMipMnuHgn2vmMBGjeztSqIErnm1NzfRubByrpW+UfIdkLxck+Nga4Nby5I9r+OvKvRgqfJQbx9xPlVFZ5yhpEZE=";

    public APPTT() {
        int m13 = C0004.m13();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m13 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Double.valueOf(C0002.m7("0t")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    public static String decrypt(String str, String str2, String str3) {
        try {
            byte[] bytes = str2.getBytes();
            byte[] bytes2 = str3.getBytes();
            SecretKeySpec secretKeySpec = new SecretKeySpec(bytes, C0003.m9(f11short, 0, 3, 2160));
            IvParameterSpec ivParameterSpec = new IvParameterSpec(bytes2);
            byte[] h = aF.h(str);
            Cipher cipher = Cipher.getInstance(C0013.m41(f11short, 3, 17, 698));
            cipher.init(2, secretKeySpec, ivParameterSpec);
            return new String(cipher.doFinal(h));
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

    public static String encrypt(String str, String str2, String str3) {
        try {
            byte[] bytes = str2.getBytes();
            byte[] bytes2 = str3.getBytes();
            SecretKeySpec secretKeySpec = new SecretKeySpec(bytes, C0015.m47(f11short, 20, 3, 746));
            IvParameterSpec ivParameterSpec = new IvParameterSpec(bytes2);
            Cipher cipher = Cipher.getInstance(C0017.m52(f11short, 23, 17, 1567));
            cipher.init(1, secretKeySpec, ivParameterSpec);
            return aF.V0(cipher.doFinal(str.getBytes()));
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:21:0x0040, code lost:
    
        return r3;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private java.util.HashMap<java.lang.String, java.lang.String> h(java.lang.String r7) {
        /*
            r6 = this;
            r0 = 0
            java.lang.String r1 = "ۦ۠"
            r2 = r0
            r3 = r0
            r4 = r1
            r1 = r0
        L7:
            int r4 = com.github.catvod.parser.C0006.m20(r4)
            switch(r4) {
                case 56389: goto L13;
                case 56506: goto L26;
                case 56572: goto L2e;
                case 1748834: goto L40;
                case 1750627: goto L20;
                case 1753639: goto L33;
                default: goto Le;
            }
        Le:
            short[] r2 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r4 = "ۢۧ"
            goto L7
        L13:
            r1 = 40
            r4 = 10
            r5 = 1091(0x443, float:1.529E-42)
            java.lang.String r1 = com.github.catvod.parser.C0005.m17(r2, r1, r4, r5)
            java.lang.String r4 = "ۨۤ"
            goto L7
        L20:
            r3.put(r1, r0)
            java.lang.String r4 = "ۡۦۧ"
            goto L7
        L26:
            java.util.HashMap r3 = new java.util.HashMap
            r3.<init>()
            java.lang.String r4 = "ۤۤۨ"
            goto L7
        L2e:
            short[] r2 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r4 = "ۦۦۧ"
            goto L7
        L33:
            r0 = 50
            r4 = 14
            r5 = 2452(0x994, float:3.436E-42)
            java.lang.String r0 = com.github.catvod.parser.C0004.m12(r2, r0, r4, r5)
            java.lang.String r4 = "ۣۢۢ"
            goto L7
        L40:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.APPTT.h(java.lang.String):java.util.HashMap");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:118:0x0374. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:195:0x0467. Please report as an issue. */
    public String categoryContent(String str, String str2, boolean z, HashMap<String, String> hashMap) {
        String m30 = C0009.m30(f11short, 64, 11, 1683);
        String m17 = C0005.m17(f11short, 75, 7, 1693);
        String m302 = C0009.m30(f11short, 82, 8, 2836);
        String m12 = C0004.m12(f11short, 90, 6, 2094);
        String m122 = C0004.m12(f11short, 96, 8, 329);
        String m27 = C0008.m27(f11short, 104, 4, 2711);
        String m41 = C0013.m41(f11short, 108, 5, 463);
        String m52 = C0017.m52(f11short, 113, 4, 3007);
        String m26 = C0007.m26(f11short, 117, 2, 2813);
        String m18 = C0006.m18(f11short, 119, 5, 436);
        String m9 = C0003.m9(f11short, 124, 5, 988);
        String m37 = C0012.m37(f11short, 129, 4, 2130);
        String m272 = C0008.m27(f11short, 133, 4, 921);
        String m372 = C0012.m37(f11short, 137, 4, 2279);
        String m262 = C0007.m26(f11short, 141, 4, 1734);
        try {
            JSONObject jSONObject = new JSONObject();
            String str3 = this.h + C0012.m37(f11short, 145, 20, 3150) + str;
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = hashMap == null ? 1709 : 1678;
                    case 204:
                        hashMap = new HashMap<>();
                        int i2 = 1740;
                        while (true) {
                            i2 ^= 1757;
                            switch (i2) {
                                case 17:
                                    i2 = 1771;
                                    continue;
                                case 54:
                                    break;
                                default:
                                    continue;
                            }
                        }
                        break;
                    case 239:
                        break;
                }
            }
            boolean containsKey = hashMap.containsKey(m18);
            int i3 = 1864;
            while (true) {
                i3 ^= 1881;
                switch (i3) {
                    case 17:
                        i3 = !containsKey ? 48736 : 48705;
                    case 47384:
                        break;
                    case 47417:
                        hashMap.put(m18, "");
                        break;
                    case 47483:
                }
            }
            boolean containsKey2 = hashMap.containsKey(m262);
            int i4 = 48767;
            while (true) {
                i4 ^= 48784;
                switch (i4) {
                    case 14:
                        break;
                    case 45:
                        break;
                    case 76:
                        hashMap.put(m262, "");
                        break;
                    case 239:
                        if (containsKey2) {
                            break;
                        } else {
                            i4 = 48860;
                        }
                    default:
                        continue;
                }
                i4 = 48829;
            }
            boolean containsKey3 = hashMap.containsKey(m372);
            int i5 = 48891;
            while (true) {
                i5 ^= 48908;
                switch (i5) {
                    case 22:
                    case 53:
                        break;
                    case 503:
                        i5 = !containsKey3 ? 49635 : 48953;
                    case 32495:
                        hashMap.put(m372, "");
                        break;
                }
            }
            boolean containsKey4 = hashMap.containsKey(m272);
            int i6 = 49666;
            while (true) {
                i6 ^= 49683;
                switch (i6) {
                    case 17:
                        i6 = !containsKey4 ? 49759 : 49728;
                    case 50:
                    case 76:
                        hashMap.put(m272, "");
                        break;
                    case 83:
                        break;
                }
            }
            boolean containsKey5 = hashMap.containsKey(m37);
            int i7 = 49790;
            while (true) {
                i7 ^= 49807;
                switch (i7) {
                    case 18:
                    case 51:
                        break;
                    case 84:
                        hashMap.put(m37, "");
                        break;
                    case 241:
                        i7 = !containsKey5 ? 49883 : 49852;
                }
            }
            boolean containsKey6 = hashMap.containsKey(m26);
            int i8 = 49914;
            while (true) {
                i8 ^= 49931;
                switch (i8) {
                    case 497:
                        i8 = !containsKey6 ? 50658 : 50627;
                    case 1711:
                    case 1736:
                        break;
                    case 1769:
                        hashMap.put(m26, "");
                        break;
                }
            }
            String str4 = (((((str3 + C0017.m52(f11short, 165, 7, 2650) + hashMap.get(m37)) + C0017.m52(f11short, 172, 6, 1311) + hashMap.get(m262)) + C0000.m1(f11short, 178, 6, 759) + hashMap.get(m372)) + C0008.m27(f11short, 184, 6, 917) + hashMap.get(m272)) + C0006.m18(f11short, 190, 6, 2534) + str2 + C0018.m56(f11short, 196, 7, 1513)) + C0002.m6(f11short, 203, 16, 1674) + getToken2();
            TreeMap treeMap = new TreeMap();
            String F8 = fP.F8(str4, h(str4), treeMap);
            List list = (List) treeMap.get(C0015.m47(f11short, 219, 3, 346));
            int i9 = 0;
            String h = O.h((String) list.get(0), this.oC);
            JSONObject jSONObject2 = new JSONObject(decrypt(new JSONObject(F8).getString(C0015.m47(f11short, 222, 4, 2735)), h.substring(16, 48), h.substring(0, 16)));
            JSONArray jSONArray = jSONObject2.getJSONArray(m52);
            JSONArray jSONArray2 = new JSONArray();
            while (true) {
                int length = jSONArray.length();
                int i10 = 50689;
                while (true) {
                    i10 ^= 50706;
                    switch (i10) {
                        case 19:
                            i10 = i9 < length ? 50782 : 50751;
                        case 45:
                            break;
                        case 50:
                        case 76:
                            JSONObject jSONObject3 = jSONArray.getJSONObject(i9);
                            JSONObject jSONObject4 = new JSONObject();
                            int parseInt = Integer.parseInt(jSONObject3.getString(C0002.m6(f11short, 226, 8, 3124)));
                            int i11 = 50813;
                            while (true) {
                                i11 ^= 50830;
                                switch (i11) {
                                    case 18:
                                    case 53:
                                        break;
                                    case 243:
                                        i11 = parseInt > 2022 ? 51557 : 50875;
                                    case 4075:
                                        boolean contains = jSONObject3.getString(m122).contains(C0013.m41(f11short, 234, 2, 3103));
                                        int i12 = 51588;
                                        while (true) {
                                            i12 ^= 51605;
                                            switch (i12) {
                                                case 17:
                                                    i12 = !contains ? 51681 : 51650;
                                                case 54:
                                                case 87:
                                                    break;
                                                case 116:
                                                    boolean contains2 = jSONObject3.getString(C0005.m17(f11short, 236, 8, 568)).contains(C0001.m3(f11short, 244, 2, 743));
                                                    int i13 = 51712;
                                                    while (true) {
                                                        i13 ^= 51729;
                                                        switch (i13) {
                                                            case 14:
                                                            case 17:
                                                                i13 = !contains2 ? 51805 : 51774;
                                                            case 47:
                                                                break;
                                                            case 76:
                                                                boolean contains3 = jSONObject3.getString(m122).contains(C0014.m43(f11short, 246, 2, 590));
                                                                int i14 = 51836;
                                                                while (true) {
                                                                    i14 ^= 51853;
                                                                    switch (i14) {
                                                                        case 241:
                                                                            i14 = contains3 ? 52580 : 52549;
                                                                        case 1963:
                                                                        case 1992:
                                                                            jSONObject4.put(m12, jSONObject3.getString(m12));
                                                                            jSONObject4.put(m302, jSONObject3.getString(m302));
                                                                            jSONObject4.put(m17, jSONObject3.getString(m17));
                                                                            jSONObject4.put(m30, jSONObject3.getString(m30));
                                                                            jSONArray2.put(jSONObject4);
                                                                            break;
                                                                        case 2025:
                                                                            int i15 = 52611;
                                                                            while (true) {
                                                                                i15 ^= 52628;
                                                                                switch (i15) {
                                                                                    case 23:
                                                                                        i15 = 52642;
                                                                                    case 54:
                                                                                        break;
                                                                                }
                                                                                break;
                                                                            }
                                                                    }
                                                                }
                                                                break;
                                                        }
                                                    }
                                                    break;
                                            }
                                        }
                                        break;
                                }
                            }
                            int i16 = i9 + 1;
                            int i17 = 52735;
                            while (true) {
                                i17 ^= 52752;
                                switch (i17) {
                                    case 14:
                                        break;
                                    case 1007:
                                        i17 = 52766;
                                        break;
                                }
                            }
                            i9 = i16;
                            break;
                    }
                    int i18 = jSONObject2.getInt(m41);
                    int i19 = i18 / jSONObject2.getInt(m9);
                    jSONObject.put(m27, jSONObject2.getInt(m27));
                    jSONObject.put(C0004.m12(f11short, 248, 9, 508), i19);
                    jSONObject.put(m9, jSONObject2.getInt(m9));
                    jSONObject.put(m41, i18);
                    jSONObject.put(m52, jSONArray2);
                    return jSONObject.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:42:0x02a1. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:60:0x030f. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:7:0x0234. Please report as an issue. */
    public String detailContent(List<String> list) {
        String m6 = C0002.m6(f11short, 257, 11, 1360);
        String m18 = C0006.m18(f11short, 268, 3, 1667);
        String m12 = C0004.m12(f11short, 271, 11, 415);
        String m122 = C0004.m12(f11short, 282, 12, 858);
        String m30 = C0009.m30(f11short, 294, 9, 2417);
        String m302 = C0009.m30(f11short, 303, 11, 1972);
        String m27 = C0008.m27(f11short, 314, 8, 3260);
        String m26 = C0007.m26(f11short, 322, 8, 397);
        String m62 = C0002.m6(f11short, 330, 7, 3227);
        String m52 = C0017.m52(f11short, 337, 8, 573);
        String m272 = C0008.m27(f11short, 345, 6, 1796);
        String m17 = C0005.m17(f11short, 351, 4, 2611);
        try {
            Init.getPackage();
            JSONObject jSONObject = new JSONObject();
            JSONObject jSONObject2 = new JSONObject();
            StringBuilder sb = new StringBuilder();
            sb.append(this.h);
            sb.append(C0001.m3(f11short, 355, 33, 1972));
            sb.append(list.get(0));
            sb.append(C0013.m41(f11short, 388, 7, 2661));
            sb.append(getToken2());
            String sb2 = sb.toString();
            System.out.println(sb2);
            TreeMap treeMap = new TreeMap();
            String F8 = fP.F8(sb2, h(sb2), treeMap);
            String h = O.h((String) ((List) treeMap.get(C0005.m17(f11short, 395, 3, 1834))).get(0), this.oC);
            String substring = h.substring(0, 16);
            String substring2 = h.substring(16, 48);
            JSONObject jSONObject3 = new JSONObject(decrypt(new JSONObject(F8).getString(m17), substring2, substring)).getJSONObject(C0009.m30(f11short, 398, 9, 454));
            JSONObject jSONObject4 = new JSONObject(decrypt(new JSONObject(F8).getString(m17), substring2, substring));
            ArrayList arrayList = new ArrayList();
            ArrayList arrayList2 = new ArrayList();
            jSONObject.put(m272, jSONObject3.getString(m272));
            jSONObject.put(m52, jSONObject3.getString(m52));
            jSONObject.put(m62, jSONObject3.getString(m62));
            jSONObject.put(m26, jSONObject3.getString(m26));
            jSONObject.put(m27, jSONObject3.getString(m27));
            jSONObject.put(m302, jSONObject3.getString(m302));
            jSONObject.put(m30, jSONObject3.getString(m30));
            jSONObject.put(m122, jSONObject3.getString(m122));
            jSONObject.put(m12, jSONObject3.getString(m12));
            JSONArray jSONArray = jSONObject4.getJSONArray(C0001.m3(f11short, 407, 6, 2613));
            int i = 0;
            while (true) {
                int length = jSONArray.length();
                String m63 = C0002.m6(f11short, 413, 4, 2548);
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject5 = jSONArray.getJSONObject(i);
                            String string = jSONObject5.getJSONObject(m6).getString(C0015.m47(f11short, 417, 4, 1129));
                            String string2 = jSONObject5.getJSONObject(m6).getString(C0014.m43(f11short, 421, 5, 519));
                            boolean isEmpty = string2.isEmpty();
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = isEmpty ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        string2 = C0001.m3(f11short, 426, 6, 534);
                                        break;
                                }
                            }
                            ArrayList arrayList3 = new ArrayList();
                            JSONArray jSONArray2 = new JSONArray(jSONObject5.getString(m63));
                            int i4 = 0;
                            while (true) {
                                int length2 = jSONArray2.length();
                                int i5 = 1864;
                                while (true) {
                                    i5 ^= 1881;
                                    switch (i5) {
                                        case 17:
                                            i5 = i4 < length2 ? 48736 : 48705;
                                        case 47384:
                                            break;
                                        case 47417:
                                            arrayList3.add(jSONArray2.get(i4).toString() + C0012.m37(f11short, 432, 1, 2942) + string2);
                                            int i6 = i4 + 1;
                                            int i7 = 48767;
                                            while (true) {
                                                i7 ^= 48784;
                                                switch (i7) {
                                                    case 14:
                                                        break;
                                                    case 239:
                                                        i7 = 48798;
                                                        break;
                                                }
                                            }
                                            i4 = i6;
                                            break;
                                        case 47483:
                                    }
                                    boolean isEmpty2 = arrayList3.isEmpty();
                                    int i8 = 48891;
                                    while (true) {
                                        i8 ^= 48908;
                                        switch (i8) {
                                            case 22:
                                            case 53:
                                                arrayList.add(string);
                                                arrayList2.add(TextUtils.join(C0003.m9(f11short, 433, 1, 1693), arrayList3));
                                                break;
                                            case 503:
                                                i8 = isEmpty2 ? 49635 : 48953;
                                            case 32495:
                                                int i9 = 49666;
                                                while (true) {
                                                    i9 ^= 49683;
                                                    switch (i9) {
                                                        case 17:
                                                            i9 = 49697;
                                                        case 50:
                                                            break;
                                                    }
                                                    break;
                                                }
                                        }
                                    }
                                    int i10 = i + 1;
                                    int i11 = 49790;
                                    while (true) {
                                        i11 ^= 49807;
                                        switch (i11) {
                                            case 18:
                                                break;
                                            case 241:
                                                i11 = 49821;
                                                break;
                                        }
                                    }
                                    i = i10;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    String join = TextUtils.join(m18, arrayList);
                    String join2 = TextUtils.join(m18, arrayList2);
                    jSONObject.put(C0018.m56(f11short, 434, 13, 698), join);
                    jSONObject.put(C0007.m26(f11short, 447, 12, 2276), join2);
                    JSONArray jSONArray3 = new JSONArray();
                    jSONArray3.put(jSONObject);
                    jSONObject2.put(m63, jSONArray3);
                    return jSONObject2.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:48:0x0080, code lost:
    
        return r4;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String getToken2() {
        /*
            r10 = this;
            r9 = 1
            r1 = 0
            r2 = 0
            java.lang.String r0 = "ۧۨ"
            r4 = r1
            r5 = r1
            r6 = r2
            r3 = r1
            r2 = r1
        Lb:
            int r0 = com.github.catvod.parser.C0006.m20(r0)
            switch(r0) {
                case 56356: goto L2a;
                case 1746974: goto L23;
                case 1747741: goto L3f;
                case 1747748: goto L70;
                case 1747750: goto L69;
                case 1747897: goto L19;
                case 1748767: goto L34;
                case 1748857: goto L1e;
                case 1748865: goto L5d;
                case 1749820: goto L80;
                case 1750722: goto L56;
                case 1750783: goto L2f;
                case 1751717: goto L7b;
                case 1752706: goto L4b;
                case 1754505: goto L44;
                default: goto L12;
            }
        L12:
            long r6 = java.lang.System.currentTimeMillis()
            java.lang.String r0 = "۟ۨۧ"
            goto Lb
        L19:
            short[] r1 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r0 = "ۡۧۧ"
            goto Lb
        L1e:
            short[] r1 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r0 = "ۥۧۤ"
            goto Lb
        L23:
            java.lang.String r5 = java.lang.String.valueOf(r6)
            java.lang.String r0 = "ۣۣۧ"
            goto Lb
        L2a:
            short[] r1 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r0 = "ۡۤۢ"
            goto Lb
        L2f:
            java.lang.String r4 = r10.V0
            java.lang.String r0 = "ۤۦۧ"
            goto Lb
        L34:
            r0 = 459(0x1cb, float:6.43E-43)
            r5 = 1483(0x5cb, float:2.078E-42)
            java.lang.String r5 = com.github.catvod.spider.merge.C0011.m35(r1, r0, r9, r5)
            java.lang.String r0 = "۠ۢ۟"
            goto Lb
        L3f:
            short[] r1 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r0 = "۠ۢۦ"
            goto Lb
        L44:
            java.lang.String r2 = encrypt(r5, r4, r3)
            java.lang.String r0 = "ۡۥ"
            goto Lb
        L4b:
            r0 = 463(0x1cf, float:6.49E-43)
            r5 = 1669(0x685, float:2.339E-42)
            java.lang.String r5 = com.github.catvod.spider.merge.C0011.m35(r1, r0, r9, r5)
            java.lang.String r0 = "ۣۥۤ"
            goto Lb
        L56:
            java.lang.String r4 = r3.replaceAll(r2, r5)
            java.lang.String r0 = "ۢۧۡ"
            goto Lb
        L5d:
            r0 = 461(0x1cd, float:6.46E-43)
            r2 = 2
            r8 = 2491(0x9bb, float:3.49E-42)
            java.lang.String r2 = com.github.catvod.parser.C0005.m17(r1, r0, r2, r8)
            java.lang.String r0 = "ۡۧ۟"
            goto Lb
        L69:
            java.lang.String r3 = r2.replaceAll(r5, r4)
            java.lang.String r0 = "۠ۧ۠"
            goto Lb
        L70:
            r0 = 460(0x1cc, float:6.45E-43)
            r4 = 2673(0xa71, float:3.746E-42)
            java.lang.String r4 = com.github.catvod.parser.C0001.m3(r1, r0, r9, r4)
            java.lang.String r0 = "۠ۢۨ"
            goto Lb
        L7b:
            java.lang.String r3 = r10.j
            java.lang.String r0 = "ۣۧۥ"
            goto Lb
        L80:
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.APPTT.getToken2():java.lang.String");
    }

    /* JADX WARN: Code restructure failed: missing block: B:66:0x00b0, code lost:
    
        return r11;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String getToken3(java.lang.String r11) {
        /*
            r10 = this;
            r9 = 1
            r0 = 0
            r2 = 0
            java.lang.String r1 = "ۣۡۤ"
            r4 = r0
            r6 = r2
            r5 = r1
            r1 = r0
            r2 = r0
            r3 = r0
        Lc:
            int r5 = com.github.catvod.parser.C0006.m20(r5)
            switch(r5) {
                case 56413: goto L8a;
                case 56571: goto L6e;
                case 1746817: goto L79;
                case 1746879: goto L25;
                case 1749601: goto L74;
                case 1749672: goto L45;
                case 1749757: goto L2a;
                case 1749758: goto L1a;
                case 1750598: goto L7e;
                case 1750660: goto La4;
                case 1751558: goto L85;
                case 1752616: goto L4c;
                case 1752644: goto L9d;
                case 1753417: goto L58;
                case 1753453: goto L63;
                case 1753607: goto L96;
                case 1754442: goto L37;
                case 1754501: goto Laa;
                case 1754507: goto L3e;
                case 1755376: goto L32;
                case 1755431: goto Lb0;
                default: goto L13;
            }
        L13:
            java.lang.String r1 = r0.replaceAll(r2, r11)
            java.lang.String r5 = "ۣ۟ۥ"
            goto Lc
        L1a:
            r5 = 466(0x1d2, float:6.53E-43)
            r8 = 359(0x167, float:5.03E-43)
            java.lang.String r11 = com.github.catvod.spider.merge.C0012.m37(r3, r5, r9, r8)
            java.lang.String r5 = "ۢۧ۠"
            goto Lc
        L25:
            short[] r3 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r5 = "ۦ۠ۧ"
            goto Lc
        L2a:
            java.lang.StringBuilder r4 = new java.lang.StringBuilder
            r4.<init>()
            java.lang.String r5 = "ۥۥۤ"
            goto Lc
        L32:
            short[] r3 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r5 = "ۦ۟ۢ"
            goto Lc
        L37:
            java.lang.String r2 = r4.toString()
            java.lang.String r5 = "ۣۧۡ"
            goto Lc
        L3e:
            java.lang.String r11 = r1.replaceAll(r0, r2)
            java.lang.String r5 = "ۨۢۡ"
            goto Lc
        L45:
            java.lang.String r0 = encrypt(r2, r11, r1)
            java.lang.String r5 = "۟ۥۥ"
            goto Lc
        L4c:
            r0 = 467(0x1d3, float:6.54E-43)
            r5 = 2
            r8 = 3238(0xca6, float:4.537E-42)
            java.lang.String r0 = com.github.catvod.parser.C0004.m12(r3, r0, r5, r8)
            java.lang.String r5 = "ۨ۠ۨ"
            goto Lc
        L58:
            r2 = 469(0x1d5, float:6.57E-43)
            r5 = 753(0x2f1, float:1.055E-42)
            java.lang.String r2 = com.github.catvod.parser.C0003.m9(r3, r2, r9, r5)
            java.lang.String r5 = "ۣۧۧ"
            goto Lc
        L63:
            r2 = 465(0x1d1, float:6.52E-43)
            r5 = 2609(0xa31, float:3.656E-42)
            java.lang.String r2 = com.github.catvod.spider.merge.C0013.m41(r3, r2, r9, r5)
            java.lang.String r5 = "ۢ۠۟"
            goto Lc
        L6e:
            r4.append(r11)
            java.lang.String r5 = "ۧۡۤ"
            goto Lc
        L74:
            short[] r3 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r5 = "ۢۥۡ"
            goto Lc
        L79:
            short[] r3 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r5 = "ۥۤۧ"
            goto Lc
        L7e:
            long r6 = java.lang.System.currentTimeMillis()
            java.lang.String r5 = "ۢۥ۠"
            goto Lc
        L85:
            short[] r3 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r5 = "ۣ۠"
            goto Lc
        L8a:
            r2 = 464(0x1d0, float:6.5E-43)
            r5 = 732(0x2dc, float:1.026E-42)
            java.lang.String r2 = com.github.catvod.parser.C0007.m26(r3, r2, r9, r5)
            java.lang.String r5 = "ۦۥۦ"
            goto Lc
        L96:
            r4.append(r2)
            java.lang.String r5 = "ۣۨ"
            goto Lc
        L9d:
            r4.append(r6)
            java.lang.String r5 = "ۣۤۡ"
            goto Lc
        La4:
            java.lang.String r1 = r10.I
            java.lang.String r5 = "ۢۢۨ"
            goto Lc
        Laa:
            java.lang.String r11 = r10.q
            java.lang.String r5 = "ۣۣۤ"
            goto Lc
        Lb0:
            return r11
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.APPTT.getToken3(java.lang.String):java.lang.String");
    }

    public String homeContent(boolean z) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0017.m52(f11short, 604, 5, 938), new JSONArray(C0001.m3(f11short, 470, 134, 2508)));
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                        break;
                    case 49:
                        if (!z) {
                            break;
                        } else {
                            i = 1709;
                        }
                    case 204:
                        jSONObject.put(C0014.m43(f11short, 609, 7, 685), new JSONObject("{\"1\":[{\"key\":\"class\",\"name\":\"类型\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"喜剧\",\"v\":\"喜剧\"},{\"n\":\"爱情\",\"v\":\"爱情\"},{\"n\":\"恐怖\",\"v\":\"恐怖\"},{\"n\":\"动作\",\"v\":\"动作\"},{\"n\":\"科幻\",\"v\":\"科幻\"},{\"n\":\"剧情\",\"v\":\"剧情\"},{\"n\":\"战争\",\"v\":\"战争\"},{\"n\":\"警匪\",\"v\":\"警匪\"},{\"n\":\"犯罪\",\"v\":\"犯罪\"},{\"n\":\"动画\",\"v\":\"动画\"},{\"n\":\"奇幻\",\"v\":\"奇幻\"},{\"n\":\"武侠\",\"v\":\"武侠\"},{\"n\":\"冒险\",\"v\":\"冒险\"},{\"n\":\"枪战\",\"v\":\"枪战\"},{\"n\":\"恐怖\",\"v\":\"恐怖\"},{\"n\":\"悬疑\",\"v\":\"悬疑\"},{\"n\":\"惊悚\",\"v\":\"惊悚\"},{\"n\":\"经典\",\"v\":\"经典\"},{\"n\":\"青春\",\"v\":\"青春\"},{\"n\":\"文艺\",\"v\":\"文艺\"},{\"n\":\"微电影\",\"v\":\"微电影\"},{\"n\":\"古装\",\"v\":\"古装\"},{\"n\":\"历史\",\"v\":\"历史\"},{\"n\":\"运动\",\"v\":\"运动\"},{\"n\":\"农村\",\"v\":\"农村\"},{\"n\":\"儿童\",\"v\":\"儿童\"},{\"n\":\"网络电影\",\"v\":\"网络电影\"},{\"n\":\"情色\",\"v\":\"情色\"}]},{\"key\":\"area\",\"name\":\"地区\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"大陆\",\"v\":\"大陆\"},{\"n\":\"香港\",\"v\":\"香港\"},{\"n\":\"台湾\",\"v\":\"台湾\"},{\"n\":\"美国\",\"v\":\"美国\"},{\"n\":\"法国\",\"v\":\"法国\"},{\"n\":\"英国\",\"v\":\"英国\"},{\"n\":\"日本\",\"v\":\"日本\"},{\"n\":\"韩国\",\"v\":\"韩国\"},{\"n\":\"德国\",\"v\":\"德国\"},{\"n\":\"泰国\",\"v\":\"泰国\"},{\"n\":\"印度\",\"v\":\"印度\"},{\"n\":\"意大利\",\"v\":\"意大利\"},{\"n\":\"西班牙\",\"v\":\"西班牙\"},{\"n\":\"加拿大\",\"v\":\"加拿大\"},{\"n\":\"其他\",\"v\":\"其他\"}]},{\"key\":\"year\",\"name\":\"年份\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"2022\",\"v\":\"2022\"},{\"n\":\"2021\",\"v\":\"2021\"},{\"n\":\"2020\",\"v\":\"2020\"},{\"n\":\"2019\",\"v\":\"2019\"},{\"n\":\"2018\",\"v\":\"2018\"},{\"n\":\"2017\",\"v\":\"2017\"},{\"n\":\"2016\",\"v\":\"2016\"},{\"n\":\"2015\",\"v\":\"2015\"},{\"n\":\"2014\",\"v\":\"2014\"},{\"n\":\"2013\",\"v\":\"2013\"},{\"n\":\"2012\",\"v\":\"2012\"},{\"n\":\"2011\",\"v\":\"2011\"},{\"n\":\"2010\",\"v\":\"2010\"}]},{\"key\":\"lang\",\"name\":\"语言\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"国语\",\"v\":\"国语\"},{\"n\":\"英语\",\"v\":\"英语\"},{\"n\":\"粤语\",\"v\":\"粤语\"},{\"n\":\"闽南语\",\"v\":\"闽南语\"},{\"n\":\"韩语\",\"v\":\"韩语\"},{\"n\":\"日语\",\"v\":\"日语\"},{\"n\":\"法语\",\"v\":\"法语\"},{\"n\":\"德语\",\"v\":\"德语\"},{\"n\":\"其它\",\"v\":\"其它\"}]},{\"key\":\"排序\",\"name\":\"排序\",\"value\":[{\"n\":\"时间\",\"v\":\"time\"},{\"n\":\"人气\",\"v\":\"hits\"},{\"n\":\"评分\",\"v\":\"score\"}]}],\"2\":[{\"key\":\"class\",\"name\":\"类型\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"古装\",\"v\":\"古装\"},{\"n\":\"战争\",\"v\":\"战争\"},{\"n\":\"青春偶像\",\"v\":\"青春偶像\"},{\"n\":\"喜剧\",\"v\":\"喜剧\"},{\"n\":\"家庭\",\"v\":\"家庭\"},{\"n\":\"犯罪\",\"v\":\"犯罪\"},{\"n\":\"动作\",\"v\":\"动作\"},{\"n\":\"奇幻\",\"v\":\"奇幻\"},{\"n\":\"剧情\",\"v\":\"剧情\"},{\"n\":\"历史\",\"v\":\"历史\"},{\"n\":\"经典\",\"v\":\"经典\"},{\"n\":\"乡村\",\"v\":\"乡村\"},{\"n\":\"情景\",\"v\":\"情景\"},{\"n\":\"商战\",\"v\":\"商战\"},{\"n\":\"网剧\",\"v\":\"网剧\"},{\"n\":\"其他\",\"v\":\"其他\"}]},{\"key\":\"area\",\"name\":\"地区\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"内地\",\"v\":\"内地\"},{\"n\":\"韩国\",\"v\":\"韩国\"},{\"n\":\"香港\",\"v\":\"香港\"},{\"n\":\"台湾\",\"v\":\"台湾\"},{\"n\":\"日本\",\"v\":\"日本\"},{\"n\":\"美国\",\"v\":\"美国\"},{\"n\":\"泰国\",\"v\":\"泰国\"},{\"n\":\"英国\",\"v\":\"英国\"},{\"n\":\"新加坡\",\"v\":\"新加坡\"},{\"n\":\"其他\",\"v\":\"其他\"}]},{\"key\":\"year\",\"name\":\"年份\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"2022\",\"v\":\"2022\"},{\"n\":\"2021\",\"v\":\"2021\"},{\"n\":\"2020\",\"v\":\"2020\"},{\"n\":\"2019\",\"v\":\"2019\"},{\"n\":\"2018\",\"v\":\"2018\"},{\"n\":\"2017\",\"v\":\"2017\"},{\"n\":\"2016\",\"v\":\"2016\"},{\"n\":\"2015\",\"v\":\"2015\"},{\"n\":\"2014\",\"v\":\"2014\"},{\"n\":\"2013\",\"v\":\"2013\"},{\"n\":\"2012\",\"v\":\"2012\"},{\"n\":\"2011\",\"v\":\"2011\"},{\"n\":\"2010\",\"v\":\"2010\"}]},{\"key\":\"lang\",\"name\":\"语言\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"国语\",\"v\":\"国语\"},{\"n\":\"英语\",\"v\":\"英语\"},{\"n\":\"粤语\",\"v\":\"粤语\"},{\"n\":\"闽南语\",\"v\":\"闽南语\"},{\"n\":\"韩语\",\"v\":\"韩语\"},{\"n\":\"日语\",\"v\":\"日语\"},{\"n\":\"其它\",\"v\":\"其它\"}]},{\"key\":\"排序\",\"name\":\"排序\",\"value\":[{\"n\":\"时间\",\"v\":\"time\"},{\"n\":\"人气\",\"v\":\"hits\"},{\"n\":\"评分\",\"v\":\"score\"}]}],\"4\":[{\"key\":\"class\",\"name\":\"类型\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"选秀\",\"v\":\"选秀\"},{\"n\":\"情感\",\"v\":\"情感\"},{\"n\":\"访谈\",\"v\":\"访谈\"},{\"n\":\"播报\",\"v\":\"播报\"},{\"n\":\"旅游\",\"v\":\"旅游\"},{\"n\":\"音乐\",\"v\":\"音乐\"},{\"n\":\"美食\",\"v\":\"美食\"},{\"n\":\"纪实\",\"v\":\"纪实\"},{\"n\":\"曲艺\",\"v\":\"曲艺\"},{\"n\":\"生活\",\"v\":\"生活\"},{\"n\":\"游戏互动\",\"v\":\"游戏互动\"},{\"n\":\"财经\",\"v\":\"财经\"},{\"n\":\"求职\",\"v\":\"求职\"}]},{\"key\":\"area\",\"name\":\"地区\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"内地\",\"v\":\"内地\"},{\"n\":\"港台\",\"v\":\"港台\"},{\"n\":\"日韩\",\"v\":\"日韩\"},{\"n\":\"欧美\",\"v\":\"欧美\"}]},{\"key\":\"year\",\"name\":\"年份\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"2022\",\"v\":\"2022\"},{\"n\":\"2021\",\"v\":\"2021\"},{\"n\":\"2020\",\"v\":\"2020\"},{\"n\":\"2019\",\"v\":\"2019\"},{\"n\":\"2018\",\"v\":\"2018\"},{\"n\":\"2017\",\"v\":\"2017\"},{\"n\":\"2016\",\"v\":\"2016\"},{\"n\":\"2015\",\"v\":\"2015\"},{\"n\":\"2014\",\"v\":\"2014\"},{\"n\":\"2013\",\"v\":\"2013\"},{\"n\":\"2012\",\"v\":\"2012\"},{\"n\":\"2011\",\"v\":\"2011\"},{\"n\":\"2010\",\"v\":\"2010\"}]},{\"key\":\"lang\",\"name\":\"语言\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"国语\",\"v\":\"国语\"},{\"n\":\"英语\",\"v\":\"英语\"},{\"n\":\"粤语\",\"v\":\"粤语\"},{\"n\":\"闽南语\",\"v\":\"闽南语\"},{\"n\":\"韩语\",\"v\":\"韩语\"},{\"n\":\"日语\",\"v\":\"日语\"},{\"n\":\"其它\",\"v\":\"其它\"}]},{\"key\":\"排序\",\"name\":\"排序\",\"value\":[{\"n\":\"时间\",\"v\":\"time\"},{\"n\":\"人气\",\"v\":\"hits\"},{\"n\":\"评分\",\"v\":\"score\"}]}],\"3\":[{\"key\":\"class\",\"name\":\"类型\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"情感\",\"v\":\"情感\"},{\"n\":\"科幻\",\"v\":\"科幻\"},{\"n\":\"热血\",\"v\":\"热血\"},{\"n\":\"推理\",\"v\":\"推理\"},{\"n\":\"搞笑\",\"v\":\"搞笑\"},{\"n\":\"冒险\",\"v\":\"冒险\"},{\"n\":\"萝莉\",\"v\":\"萝莉\"},{\"n\":\"校园\",\"v\":\"校园\"},{\"n\":\"动作\",\"v\":\"动作\"},{\"n\":\"机战\",\"v\":\"机战\"},{\"n\":\"运动\",\"v\":\"运动\"},{\"n\":\"战争\",\"v\":\"战争\"},{\"n\":\"少年\",\"v\":\"少年\"},{\"n\":\"少女\",\"v\":\"少女\"},{\"n\":\"社会\",\"v\":\"社会\"},{\"n\":\"原创\",\"v\":\"原创\"},{\"n\":\"亲子\",\"v\":\"亲子\"},{\"n\":\"益智\",\"v\":\"益智\"},{\"n\":\"励志\",\"v\":\"励志\"},{\"n\":\"其他\",\"v\":\"其他\"}]},{\"key\":\"area\",\"name\":\"地区\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"国产\",\"v\":\"国产\"},{\"n\":\"日本\",\"v\":\"日本\"},{\"n\":\"欧美\",\"v\":\"欧美\"},{\"n\":\"其他\",\"v\":\"其他\"}]},{\"key\":\"year\",\"name\":\"年份\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"2022\",\"v\":\"2022\"},{\"n\":\"2021\",\"v\":\"2021\"},{\"n\":\"2020\",\"v\":\"2020\"},{\"n\":\"2019\",\"v\":\"2019\"},{\"n\":\"2018\",\"v\":\"2018\"},{\"n\":\"2017\",\"v\":\"2017\"},{\"n\":\"2016\",\"v\":\"2016\"},{\"n\":\"2015\",\"v\":\"2015\"},{\"n\":\"2014\",\"v\":\"2014\"},{\"n\":\"2013\",\"v\":\"2013\"},{\"n\":\"2012\",\"v\":\"2012\"},{\"n\":\"2011\",\"v\":\"2011\"},{\"n\":\"2010\",\"v\":\"2010\"}]},{\"key\":\"lang\",\"name\":\"语言\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"国语\",\"v\":\"国语\"},{\"n\":\"英语\",\"v\":\"英语\"},{\"n\":\"粤语\",\"v\":\"粤语\"},{\"n\":\"闽南语\",\"v\":\"闽南语\"},{\"n\":\"韩语\",\"v\":\"韩语\"},{\"n\":\"日语\",\"v\":\"日语\"},{\"n\":\"其它\",\"v\":\"其它\"}]},{\"key\":\"排序\",\"name\":\"排序\",\"value\":[{\"n\":\"时间\",\"v\":\"time\"},{\"n\":\"人气\",\"v\":\"hits\"},{\"n\":\"评分\",\"v\":\"score\"}]}]}"));
                        break;
                    case 239:
                        break;
                    default:
                        continue;
                }
                i = 1678;
            }
            return jSONObject.toString();
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x00cc. Please report as an issue. */
    public String homeVideoContent() {
        int i = 0;
        String m6 = C0002.m6(f11short, 616, 11, 1587);
        String m3 = C0001.m3(f11short, 627, 7, 2246);
        String m41 = C0013.m41(f11short, 634, 8, 1980);
        String m35 = C0011.m35(f11short, 642, 6, 891);
        try {
            String str = this.h + C0003.m9(f11short, 648, 36, 2286) + getToken2();
            System.out.println(str);
            TreeMap treeMap = new TreeMap();
            String F8 = fP.F8(str, h(str), treeMap);
            String h = O.h((String) ((List) treeMap.get(C0012.m37(f11short, 684, 3, 1492))).get(0), this.oC);
            String substring = h.substring(0, 16);
            String substring2 = h.substring(16, 48);
            JSONObject jSONObject = new JSONObject(F8);
            JSONArray jSONArray = new JSONArray();
            JSONArray jSONArray2 = new JSONObject(decrypt(jSONObject.getString(C0014.m43(f11short, 687, 4, 521)), substring2, substring)).getJSONArray(C0015.m47(f11short, 691, 10, 449));
            while (true) {
                int length = jSONArray2.length();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject2 = jSONArray2.getJSONObject(i);
                            JSONObject jSONObject3 = new JSONObject();
                            jSONObject3.put(m35, jSONObject2.getString(m35));
                            jSONObject3.put(m41, jSONObject2.getString(m41));
                            jSONObject3.put(m3, jSONObject2.getString(m3));
                            jSONObject3.put(m6, jSONObject2.getString(m6));
                            jSONArray.put(jSONObject3);
                            int i3 = i + 1;
                            int i4 = 1740;
                            while (true) {
                                i4 ^= 1757;
                                switch (i4) {
                                    case 17:
                                        i4 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            i = i3;
                            break;
                        case 239:
                            break;
                    }
                    JSONObject jSONObject4 = new JSONObject();
                    jSONObject4.put(C0009.m30(f11short, 701, 4, 1912), jSONArray);
                    return jSONObject4.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:66:0x009a, code lost:
    
        return;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void init(android.content.Context r13, java.lang.String r14) {
        /*
            r12 = this;
            r11 = 2
            r10 = 1
            r9 = 0
            r0 = 0
            java.lang.String r1 = "ۧۦ۟"
            r2 = r0
            r3 = r0
            r4 = r0
            r5 = r0
            r6 = r0
            r7 = r0
            r8 = r1
            r1 = r0
        Le:
            int r8 = com.github.catvod.parser.C0006.m20(r8)
            switch(r8) {
                case 56512: goto L1b;
                case 1746882: goto L71;
                case 1747743: goto L37;
                case 1747838: goto L25;
                case 1747869: goto L3e;
                case 1748832: goto L81;
                case 1751741: goto L45;
                case 1751771: goto L20;
                case 1752610: goto L76;
                case 1752671: goto L2c;
                case 1752738: goto L6a;
                case 1753510: goto L93;
                case 1753608: goto L4f;
                case 1753634: goto L62;
                case 1753635: goto L9a;
                case 1753638: goto L8b;
                case 1754592: goto L7b;
                case 1755337: goto L5b;
                case 1755370: goto L4a;
                case 1755592: goto L56;
                case 1755617: goto L86;
                default: goto L15;
            }
        L15:
            r3 = 4
            r3 = r4[r3]
            java.lang.String r8 = "ۤۧ۠"
            goto Le
        L1b:
            r12.j = r14
            java.lang.String r8 = "ۦۦۣ"
            goto Le
        L20:
            r0 = r4[r10]
            java.lang.String r8 = "ۥۤۡ"
            goto Le
        L25:
            java.lang.String[] r4 = r14.split(r7)
            java.lang.String r8 = "ۤۨ۟"
            goto Le
        L2c:
            r7 = 705(0x2c1, float:9.88E-43)
            r8 = 1045(0x415, float:1.464E-42)
            java.lang.String r7 = com.github.catvod.parser.C0005.m17(r5, r7, r11, r8)
            java.lang.String r8 = "۠ۢۡ"
            goto Le
        L37:
            java.lang.String[] r4 = r14.split(r7)
            java.lang.String r8 = "۠ۨۢ"
            goto Le
        L3e:
            java.lang.String r7 = r14.substring(r10)
            java.lang.String r8 = "ۦۥۧ"
            goto Le
        L45:
            r12.q = r3
            java.lang.String r8 = "ۦۦۦ"
            goto Le
        L4a:
            r1 = r4[r11]
            java.lang.String r8 = "۟ۥۨ"
            goto Le
        L4f:
            byte[] r6 = android.util.Base64.decode(r7, r9)
            java.lang.String r8 = "ۦۦۢ"
            goto Le
        L56:
            r12.I = r2
            java.lang.String r8 = "ۥۨۥ"
            goto Le
        L5b:
            java.lang.String[] r4 = r14.split(r7)
            java.lang.String r8 = "ۨۨۡ"
            goto Le
        L62:
            java.lang.String r14 = new java.lang.String
            r14.<init>(r6)
            java.lang.String r8 = "ۡۦۥ"
            goto Le
        L6a:
            java.lang.String[] r4 = r14.split(r7)
            java.lang.String r8 = "ۨ۠ۢ"
            goto Le
        L71:
            r12.h = r1
            java.lang.String r8 = "۠ۥۣ"
            goto Le
        L76:
            r12.V0 = r0
            java.lang.String r8 = "ۨ۟۠"
            goto Le
        L7b:
            super.init(r13, r14)
            java.lang.String r8 = "۠ۦۣ"
            goto Le
        L81:
            short[] r5 = com.github.catvod.spider.APPTT.f11short
            java.lang.String r8 = "ۥۦ۠"
            goto Le
        L86:
            r14 = r4[r9]
            java.lang.String r8 = "ۦۦ"
            goto Le
        L8b:
            java.lang.String[] r4 = r14.split(r7)
            java.lang.String r8 = "ۦۢۢ"
            goto Le
        L93:
            r2 = 3
            r2 = r4[r2]
            java.lang.String r8 = "ۨۧۧ"
            goto Le
        L9a:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.APPTT.init(android.content.Context, java.lang.String):void");
    }

    public String playerContent(String str, String str2, List<String> list) {
        try {
            JSONObject jSONObject = new JSONObject();
            String[] split = str2.split(C0000.m1(f11short, 707, 2, 1494));
            String str3 = split[0];
            String str4 = split[1];
            boolean contains = str3.contains(C0001.m3(f11short, 709, 5, 786));
            String m9 = C0003.m9(f11short, 714, 5, 1676);
            String m52 = C0017.m52(f11short, 719, 3, 1790);
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = !contains ? 1709 : 1678;
                    case 204:
                        boolean contains2 = str3.contains(C0002.m6(f11short, 722, 4, 2244));
                        int i2 = 1740;
                        while (true) {
                            i2 ^= 1757;
                            switch (i2) {
                                case 17:
                                    i2 = contains2 ? 1833 : 1802;
                                case 54:
                                case 471:
                                    String str5 = str4 + str3 + C0018.m56(f11short, 726, 7, 1994) + getToken2() + C0014.m43(f11short, 733, 4, 341) + getToken3(str3);
                                    String string = new JSONObject(jP.I(fP.oq(str5, h(str5)).replace(C0011.m35(f11short, 737, 1, 2143), C0006.m18(f11short, 738, 1, 478)).replace(C0002.m6(f11short, 739, 1, 1215), C0004.m12(f11short, 740, 1, 1321)), C0007.m26(f11short, 741, 5, 2487), this.V0, this.j)).getString(m52);
                                    jSONObject.put(m9, 0);
                                    jSONObject.put(m52, string);
                                    return jSONObject.toString();
                                case 500:
                                    int i3 = 1864;
                                    while (true) {
                                        i3 ^= 1881;
                                        switch (i3) {
                                            case 17:
                                                i3 = 48674;
                                                continue;
                                            case 47483:
                                                break;
                                            default:
                                                continue;
                                        }
                                    }
                                    break;
                            }
                        }
                        break;
                    case 239:
                        break;
                }
            }
            jSONObject.put(m9, 0);
            jSONObject.put(m52, str3);
            return jSONObject.toString();
        } catch (Throwable th) {
            System.out.println(th);
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x00e8. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        String m18 = C0006.m18(f11short, 746, 11, 1164);
        String m9 = C0003.m9(f11short, 757, 7, 1335);
        String m37 = C0012.m37(f11short, 764, 8, 2830);
        String m182 = C0006.m18(f11short, 772, 6, 1748);
        String m27 = C0008.m27(f11short, 778, 4, 2831);
        try {
            JSONObject jSONObject = new JSONObject();
            String str2 = this.h + C0013.m41(f11short, 782, 34, 2751) + URLEncoder.encode(str) + C0018.m56(f11short, 816, 7, 1321) + getToken2();
            TreeMap treeMap = new TreeMap();
            String F8 = fP.F8(str2, h(str2), treeMap);
            List list = (List) treeMap.get(C0014.m43(f11short, 823, 3, 3074));
            int i = 0;
            String h = O.h((String) list.get(0), this.oC);
            String substring = h.substring(0, 16);
            String substring2 = h.substring(16, 48);
            JSONArray jSONArray = new JSONArray();
            JSONArray jSONArray2 = new JSONObject(decrypt(new JSONObject(F8).getString(C0013.m41(f11short, 826, 4, 2458)), substring2, substring)).getJSONArray(m27);
            while (true) {
                int length = jSONArray2.length();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject2 = jSONArray2.getJSONObject(i);
                            JSONObject jSONObject3 = new JSONObject();
                            jSONObject3.put(m182, jSONObject2.getString(m182));
                            jSONObject3.put(m37, jSONObject2.getString(m37));
                            jSONObject3.put(m9, jSONObject2.getString(m9));
                            jSONObject3.put(m18, jSONObject2.getString(m18));
                            jSONArray.put(jSONObject3);
                            int i3 = i + 1;
                            int i4 = 1740;
                            while (true) {
                                i4 ^= 1757;
                                switch (i4) {
                                    case 17:
                                        i4 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            i = i3;
                            break;
                        case 239:
                            break;
                    }
                    jSONObject.put(m27, jSONArray);
                    return jSONObject.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }
}
